namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class AclMap : ClassMap<AclDataModel>
    {
        public AclMap()
        {
            this.Table("Acl");
            this.LazyLoad();
            this.Id();

            this.Map(x => x.AccountId).Column("AccountID");
            this.Map(x => x.Allow).Not.Nullable().Column("Allow");

            this.Map(x => x.PermissionId).Column("PermissionID");
            this.Map(x => x.NavId).Column("NavID");
        }
    }
}